package com.soft.javase.day04.raisesalary;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/21
 */
public class Test {
    public static void main(String[] args) {

        Employee employee = new Employee("小明", "南京市江宁区", "0001", 5000.0, 3);
        Manager manager = new Manager("小美", "北京市朝阳区", "0002", 10000.0, 5, "高级经理");

        System.out.println("涨工资前:");
        System.out.println(employee);
        System.out.println(manager);

        employee.raiseSalary();
        manager.raiseSalary();

        System.out.println("涨工资后:");
        System.out.println(employee);
        System.out.println(manager);
    }
}
